//
//  FontScaleExtended.swift
//  HeadlineNews
//
//  Created by han on 2019/7/29.
//  Copyright © 2019 han. All rights reserved.
//

import Foundation

struct SizeScaleExtended<T> {
    let value: T
    init(_ value: T) {
        self.value = value
    }
}

protocol SizeScaleExtendProtocol {
    associatedtype T
    var fontScale: SizeScaleExtended<T> { get  set }
    static var fontScale: SizeScaleExtended<T>.Type { get set }
}

extension SizeScaleExtendProtocol {
    var fontScale: SizeScaleExtended<Self> {
        get { return SizeScaleExtended(self) }
        set {}
    }
    
    static var fontScale: SizeScaleExtended<Self>.Type {
        get { return SizeScaleExtended<Self>.self }
        set {}
    }
}
